package com.tk.dao;

import com.tk.pojo.Books;
import org.apache.ibatis.annotations.Param;

import java.util.List;


public interface BookMapper {


    int addBook(Books books);

    int deteleBookById(@Param("bookId") int id);

    int updateBook(Books books);

    Books queryBookById(@Param("bookId") int id);

    List<Books> queryAllBook();

    Books queryBookByName(@Param("bookName") String bookName);
}
